home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Remove from TMap < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.7 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Remove from TMap
  2. Sent:        6/14/96 2:09 AM
  3. Received:    6/14/96 9:17 AM
  4. From:        Steinar.Tyvand@si.sintef.no
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Thank You for a dissapointing answer!
  9.  
  10. Can I subclass the TMap in some way to add a remove function?
  11.  
  12. Steinar
  13.  
  14.  
  15. At 01:48 14.06.96 -0700, you wrote:
  16. >At 8:01 AM 6/14/96, Steinar.Tyvand@si.sintef.no wrote:
  17. >>I'm using the TMap template to create a map of FW_CString to a value. How do
  18. >>I remove a pair from the mapping?
  19. >
  20. >I'm (very) embarassed to admit it, but it is not currently possible to
  21. >remove items from FW_TMaps.  I rolled that class together pretty quickly
  22. >relatively late in our development cycle and specifically to meet our needs
  23. >in archiving, which doesn't need to remove items from maps.  I did intend
  24. >the class to be generally reusable, but in the hustle to get ODF R1
  25. >finished I didn't notice the missing functionality.
  26. >
  27. >It can be fixed in a future release, but will require adding another
  28. >function to ODFLibrary, so parts using the revised maps won't work with
  29. >ODFLibrary 1.0.  It's really a shame to require a new release of ODFLibrary
  30. >to get this basic functionality.
  31. >
  32. >Sorry for the inconvenience.
  33. >
  34. >Jim Lloyd
  35. >
  36. >
  37. >
  38. --------------------------------------------------------------
  39. Steinar Tyvand             e-mail: Steinar.Tyvand@unimed.sintef.no
  40. SINTEF Unimed Rehab        Phone:  +47 22 06 78 29 (work)
  41. Box 124 Blindern           Fax:    +47 22 06 79 09 (work)
  42. N-0314 Oslo                Phone:  +47 67 56 17 79 (home)
  43. Norway                     Fax:    +47 67 56 05 36 (home)
  44. --------------------------------------------------------------
  45.